package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddVerifyAnswerDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactAddVerifyAnswerVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactAddVerifyAnswerDto2VoConverter {

    ContactAddVerifyAnswerDto2VoConverter INSTANCE = Mappers.getMapper(ContactAddVerifyAnswerDto2VoConverter.class);

    ContactAddVerifyAnswerDto vo2dto(ContactAddVerifyAnswerVo vo);

    List<ContactAddVerifyAnswerDto> vo2dto(List<ContactAddVerifyAnswerVo> voList);

    @InheritInverseConfiguration
    ContactAddVerifyAnswerVo dto2vo(ContactAddVerifyAnswerDto dto);

    @InheritInverseConfiguration
    List<ContactAddVerifyAnswerVo> dto2vo(List<ContactAddVerifyAnswerDto> dtoList);

}
